package time;

import java.util.List;

/**
 * Created by mac on 2014/7/15.
 */
public class StringWheelAdapter implements WheelAdapter {

    private List<String> wheelStr;
    public StringWheelAdapter(List<String> wheelStr){

        this.wheelStr = wheelStr;
    }

    @Override
    public int getItemsCount() {

        return wheelStr.size();
    }

    @Override
    public String getItem(int index) {

        return wheelStr.get(index);
    }

    @Override
    public int getMaximumLength() {

        return 15;
    }
}
